package hh.util.jdbc;

import lombok.Data;
import lombok.Getter;
import lombok.experimental.Accessors;

import javax.sql.DataSource;

@Data
@Getter
public class DbProperties {

    /**
     * Name of the datasource，unique
     */
    private String dbName;
    private String name;
    private Integer datasourceSize;
    private String validSql;
    /**
     * 数据源别名，可以多个，逗号隔开，全局唯一
     */
    private String alias;

    private Class<? extends DataSource> type;

    private String driverClassName;
    /**
     * JDBC URL of the database.
     */
    private String url;
    private String username;
    private String password;

    /**
     * 初始化发现连接错误是否停止
     */
    private boolean continueOnError = false;

}
